﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

using Bricks.Component.Utils;
using Bricks.Site.Models;
using Bricks.Business.Models.ProjectContract;


namespace Bricks.Business.Service
{
    public interface IProjectInfoService
    {
        List<ProjectInfoView> GetProjectInfoList();

        IQueryable<ProjectInfo> ProjectInfoes { get; }

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        OperationResult Add(ProjectInfo model);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        OperationResult Modify(ProjectInfo model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        OperationResult Delete(Guid id);

        /// <summary>
        /// 排序设置(向上向下)
        /// </summary>
        /// <param name="id"></param>
        /// <param name="pid"></param>
        /// <param name="upOrDown"></param>
        /// <returns></returns>
        OperationResult SetOrder(Guid id, string upOrDown);
    }
}